package treenode;

//Define tree element with no children

public class SimpleTreeNode extends TreeNode  {

    public SimpleTreeNode(String label) {
        super(label);
    }

    @Override
    public void inFixPrint()  {
        System.out.print(label);
    }
    
    @Override
    public void postFixPrint() {
        System.out.print(label);
    }

    @Override
    public void preFixPrint() {
        System.out.print(label);
    }
    
    @Override
    public int compute() {
        return Integer.parseInt(label);
    }
}